# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnumeric
pkgver=1.12.47
pkgrel=1
pkgdesc="GNOME Spreadsheet Program"
url="https://www.gnome.org/projects/gnumeric"
arch="all !s390x !mips !mips64"
license="GPL-2.0-or-later OR GPL-3.0-or-later"
makedepends="gtk+3.0-dev intltool desktop-file-utils goffice-dev rarian
	libxslt-dev bison flex itstool libxml2-utils autoconf automake libtool"
subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/gnumeric/${pkgver%.*}/gnumeric-$pkgver.tar.xz"

prepare() {
	default_prepare
	autoreconf -vif
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
}


sha512sums="f6298fee752b062672acc20e18388d7424719d69ce9586888f33be07ca92bbd7d99e46b98e9ab2a546d1954d3113b59a5105d46c4e8a13e65e1ae9acc38391ab  gnumeric-1.12.47.tar.xz"
